import {createRouter, createWebHashHistory} from 'vue-router'
import IndexView from '@/views/IndexView.vue'
import PDFAccessView from '@/views/PDFAccessView.vue'
import NotDone from "@/views/NotDone.vue";

const routes = [
    {
        path: '/',
        name: 'home',
        component: IndexView
    }, {
        path: '/pdfAccess',
        name: 'pdfAccess',
        component: PDFAccessView
    },{
    path: '/notDone',
        name: 'notDone',
        component: NotDone
    },
    // {
    //   path: '/about',
    //   name: 'about',
    //   // route level code-splitting
    //   // this generates a separate chunk (about.[hash].js) for this route
    //   // which is lazy-loaded when the route is visited.
    //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
    // }
    {
        path: "/:catchAll(.*)",
        redirect: '/notDone'
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
